package com.school_admin.entity;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author
 * @since 2024-03-30
 */
@TableName("sc_message")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Message implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Integer id;

    /**
     * 用户id
     */
    private String uid;

    /**
     * 消息内容
     */
    private String content;

    /**
     * 发送消息用户id
     */
    private String sendUid;

    /**
     * 是否删除
     */
    @TableLogic
    private Integer deleted;
    private String time;
    private String title;
}
